package xml;

import javax.xml.bind.annotation.XmlElementWrapper;
import cuShapes.StraightLine;
import cuShapes.ArcLine;
import javax.xml.bind.annotation.XmlElement;
import java.util.List;

/**
 * Intermediary class created to give the properties of a list of {@link cuShapes.StraightLine StraightLines} and {@link cuShapes.ArcLine ArcLines} an xml saveable form.
 * @author mylesc,varunr
 *
 */
public class LineListType {
	// produce a wrapper XML element around this collection
	@XmlElementWrapper(name = "straightlines")
	// maps each member of this list to an XML element named appointment
	@XmlElement(name = "straightline")
	//private List<Appointment> appointments;
	private List<StraightLine> straightLines;
	// produce a wrapper XML element around this collection
	@XmlElementWrapper(name = "arclines")
	// maps each member of this list to an XML element named birthday
	@XmlElement(name = "arcline")
	//private List<Birthday> birthdays;
	private List<ArcLine> arcLines;
	// produce a wrapper XML element around this collection


	public LineListType() {}

	public LineListType(List<StraightLine> straightLines, List<ArcLine> arcLines) {
		this.straightLines = straightLines;
		this.arcLines = arcLines;
	}
	
    public List<StraightLine> getStraightLines() {
        return straightLines;
    }

    public List<ArcLine> getArcLines() {
        return arcLines;
    }
}